<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos  -->
			<title>Docs For Class WorkerSalary</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
						<script src="../media/lib/classTree.js"></script>
												<script language="javascript" type="text/javascript">
				var imgPlus = new Image();
				var imgMinus = new Image();
				imgPlus.src = "../media/images/plus.png";
				imgMinus.src = "../media/images/minus.png";
				
				function showNode(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
							var oImg = document.layers["img" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
							var oImg = document.all["img" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
							var oImg = document.getElementById("img" + Node);
									break;
							}
					oImg.src = imgMinus.src;
					oTable.style.display = "block";
				}
				
				function hideNode(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
							var oImg = document.layers["img" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
							var oImg = document.all["img" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
							var oImg = document.getElementById("img" + Node);
									break;
							}
					oImg.src = imgPlus.src;
					oTable.style.display = "none";
				}
				
				function nodeIsVisible(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
									break;
							}
					return (oTable && oTable.style.display == "block");
				}
				
				function toggleNodeVisibility(Node){
					if (nodeIsVisible(Node)){
						hideNode(Node);
					}else{
						showNode(Node);
					}
				}
			</script>
					</head>
		<body>
			<div class="page-body">			
<h2 class="class-name"><img src="../media/images/Class_logo.png"
														alt=" Class"
														title=" Class"
														style="vertical-align: middle"> WorkerSalary</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
													<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
						|											<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">author:</span> Oliver Leisalu</li>
				<li><span class="field">filesource:</span> <a href="../__filesource/fsource_Salary__libsPubSalaryWorkerSalary.class.php.html">Source Code for this file</a></li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_libsPub---Salary---WorkerSalary.class.php.html">/libsPub/Salary/WorkerSalary.class.php</a> (line <span class="field"><a href="../__filesource/fsource_Salary__libsPubSalaryWorkerSalary.class.php.html#a6">6</a></span>)
		</p>
		
				
		<pre><a href="../Salary/Salary.html">Salary</a>
   |
   --WorkerSalary</pre>
	
			</div>
</div>



	<a name="sec-var-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Variable Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
						<span class="disabled">Vars</span> (<a href="#sec-vars">details</a>)
							| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
								</div>
		<div class="info-box-body">
			<div class="var-summary">
																																																																																																<div class="var-title">
					<img src="../media/images/Variable.png" alt=" " />
					<span class="var-type">Float</span>
					<a href="#$bookingCostsPerMonth" title="details" class="var-name">$bookingCostsPerMonth</a>
				</div>
																<div class="var-title">
					<img src="../media/images/Variable.png" alt=" " />
					<span class="var-type">Float</span>
					<a href="#$companyProfit" title="details" class="var-name">$companyProfit</a>
				</div>
																<div class="var-title">
					<img src="../media/images/Variable.png" alt=" " />
					<span class="var-type">Float</span>
					<a href="#$companyProfitMarginal" title="details" class="var-name">$companyProfitMarginal</a>
				</div>
																<div class="var-title">
					<img src="../media/images/Variable.png" alt=" " />
					<span class="var-type">Float</span>
					<a href="#$effectivness" title="details" class="var-name">$effectivness</a>
				</div>
																<div class="var-title">
					<img src="../media/images/Variable.png" alt=" " />
					<span class="var-type">Float</span>
					<a href="#$effectivnessLoss" title="details" class="var-name">$effectivnessLoss</a>
				</div>
																<div class="var-title">
					<img src="../media/images/Variable.png" alt=" " />
					<span class="var-type">Float</span>
					<a href="#$hourlyTotalExpenses" title="details" class="var-name">$hourlyTotalExpenses</a>
				</div>
																<div class="var-title">
					<img src="../media/images/Variable.png" alt=" " />
					<span class="var-type">Float</span>
					<a href="#$otherCostsPerMonth" title="details" class="var-name">$otherCostsPerMonth</a>
				</div>
																<div class="var-title">
					<img src="../media/images/Variable.png" alt=" " />
					<span class="var-type">Float</span>
					<a href="#$totalExpenses" title="details" class="var-name">$totalExpenses</a>
				</div>
																<div class="var-title">
					<img src="../media/images/Variable.png" alt=" " />
					<span class="var-type">Int</span>
					<a href="#$vacationDaysPerYear" title="details" class="var-name">$vacationDaysPerYear</a>
				</div>
																<div class="var-title">
					<img src="../media/images/Variable.png" alt=" " />
					<span class="var-type">Int</span>
					<a href="#$workDaysPerYear" title="details" class="var-name">$workDaysPerYear</a>
				</div>
											</div>
		</div>
	</div>

	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
																		<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
				 
				|
						<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																							
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#calculate" title="details" class="method-name">calculate</a>
											(<span class="var-type">Float</span>&nbsp;<span class="var-name">$price</span>, [<span class="var-type">String</span>&nbsp;<span class="var-name">$type</span> = <span class="var-default">'neto'</span>])
									</div>
											</div>
		</div>
	</div>		

	<a name="sec-vars"></a>
	<div class="info-box">
		<div class="info-box-title">Variables</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
										<a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>)
						
			
										| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
					</div>
		<div class="info-box-body">
			
<a name="var$bookingCostsPerMonth" id="$bookingCostsPerMonth"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<img src="../media/images/Variable.png" />
		<span class="var-title">
			<span class="var-type">Float</span>
			<span class="var-name">$bookingCostsPerMonth</span>
			 = <span class="var-default"> 550</span>			(line <span class="line-number"><a href="../__filesource/fsource_Salary__libsPubSalaryWorkerSalary.class.php.html#a11">11</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	
		
		

</div>
<a name="var$companyProfit" id="$companyProfit"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<img src="../media/images/Variable.png" />
		<span class="var-title">
			<span class="var-type">Float</span>
			<span class="var-name">$companyProfit</span>
						(line <span class="line-number"><a href="../__filesource/fsource_Salary__libsPubSalaryWorkerSalary.class.php.html#a35">35</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	
		
		

</div>
<a name="var$companyProfitMarginal" id="$companyProfitMarginal"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<img src="../media/images/Variable.png" />
		<span class="var-title">
			<span class="var-type">Float</span>
			<span class="var-name">$companyProfitMarginal</span>
			 = <span class="var-default"> 20</span>			(line <span class="line-number"><a href="../__filesource/fsource_Salary__libsPubSalaryWorkerSalary.class.php.html#a31">31</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">How much profit company wants to make from worker salary</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	
		
		

</div>
<a name="var$effectivness" id="$effectivness"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<img src="../media/images/Variable.png" />
		<span class="var-title">
			<span class="var-type">Float</span>
			<span class="var-name">$effectivness</span>
			 = <span class="var-default"> 70</span>			(line <span class="line-number"><a href="../__filesource/fsource_Salary__libsPubSalaryWorkerSalary.class.php.html#a21">21</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Worker effectivness. It means how much time he actually earns money for company</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	
		
		

</div>
<a name="var$effectivnessLoss" id="$effectivnessLoss"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<img src="../media/images/Variable.png" />
		<span class="var-title">
			<span class="var-type">Float</span>
			<span class="var-name">$effectivnessLoss</span>
						(line <span class="line-number"><a href="../__filesource/fsource_Salary__libsPubSalaryWorkerSalary.class.php.html#a26">26</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">How much money is lost because of worker effectivness</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	
		
		

</div>
<a name="var$hourlyTotalExpenses" id="$hourlyTotalExpenses"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<img src="../media/images/Variable.png" />
		<span class="var-title">
			<span class="var-type">Float</span>
			<span class="var-name">$hourlyTotalExpenses</span>
						(line <span class="line-number"><a href="../__filesource/fsource_Salary__libsPubSalaryWorkerSalary.class.php.html#a46">46</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Real cost of employee per hour</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	
		
		

</div>
<a name="var$otherCostsPerMonth" id="$otherCostsPerMonth"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<img src="../media/images/Variable.png" />
		<span class="var-title">
			<span class="var-type">Float</span>
			<span class="var-name">$otherCostsPerMonth</span>
			 = <span class="var-default"> 150</span>			(line <span class="line-number"><a href="../__filesource/fsource_Salary__libsPubSalaryWorkerSalary.class.php.html#a15">15</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	
		
		

</div>
<a name="var$totalExpenses" id="$totalExpenses"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<img src="../media/images/Variable.png" />
		<span class="var-title">
			<span class="var-type">Float</span>
			<span class="var-name">$totalExpenses</span>
						(line <span class="line-number"><a href="../__filesource/fsource_Salary__libsPubSalaryWorkerSalary.class.php.html#a41">41</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Real cost of employee per month</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	
		
		

</div>
<a name="var$vacationDaysPerYear" id="$vacationDaysPerYear"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<img src="../media/images/Variable.png" />
		<span class="var-title">
			<span class="var-type">Int</span>
			<span class="var-name">$vacationDaysPerYear</span>
			 = <span class="var-default"> 27</span>			(line <span class="line-number"><a href="../__filesource/fsource_Salary__libsPubSalaryWorkerSalary.class.php.html#a57">57</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Estimate vacation days per year. (You might set it to 1 to represent 1 month for vacation)</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	
		
		

</div>
<a name="var$workDaysPerYear" id="$workDaysPerYear"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<img src="../media/images/Variable.png" />
		<span class="var-title">
			<span class="var-type">Int</span>
			<span class="var-name">$workDaysPerYear</span>
			 = <span class="var-default"> 260</span>			(line <span class="line-number"><a href="../__filesource/fsource_Salary__libsPubSalaryWorkerSalary.class.php.html#a52">52</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Estimate workdays per year. (You might set it to 12 to represent 12 months)</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	
		
		

</div>
							<h4>Inherited Variables</h4>
				<A NAME='inherited_vars'><!-- --></A>
									<p>Inherited from <span class="classname"><a href="../Salary/Salary.html">Salary</a></span></p>
					<blockquote>
													<img src="../media/images/Variable.png" />
							<span class="var-title">
								<span class="var-name"><a href="../Salary/Salary.html#var$bruto">Salary::$bruto</a></span><br>
							</span>
													<img src="../media/images/Variable.png" />
							<span class="var-title">
								<span class="var-name"><a href="../Salary/Salary.html#var$hourlyBruto">Salary::$hourlyBruto</a></span><br>
							</span>
													<img src="../media/images/Variable.png" />
							<span class="var-title">
								<span class="var-name"><a href="../Salary/Salary.html#var$hourlyNeto">Salary::$hourlyNeto</a></span><br>
							</span>
													<img src="../media/images/Variable.png" />
							<span class="var-title">
								<span class="var-name"><a href="../Salary/Salary.html#var$hourlyWageFund">Salary::$hourlyWageFund</a></span><br>
							</span>
													<img src="../media/images/Variable.png" />
							<span class="var-title">
								<span class="var-name"><a href="../Salary/Salary.html#var$incomeTax">Salary::$incomeTax</a></span><br>
							</span>
													<img src="../media/images/Variable.png" />
							<span class="var-title">
								<span class="var-name"><a href="../Salary/Salary.html#var$incomeTaxPercent">Salary::$incomeTaxPercent</a></span><br>
							</span>
													<img src="../media/images/Variable.png" />
							<span class="var-title">
								<span class="var-name"><a href="../Salary/Salary.html#var$neto">Salary::$neto</a></span><br>
							</span>
													<img src="../media/images/Variable.png" />
							<span class="var-title">
								<span class="var-name"><a href="../Salary/Salary.html#var$pension2Sammas">Salary::$pension2Sammas</a></span><br>
							</span>
													<img src="../media/images/Variable.png" />
							<span class="var-title">
								<span class="var-name"><a href="../Salary/Salary.html#var$pensioni2SammasPercent">Salary::$pensioni2SammasPercent</a></span><br>
							</span>
													<img src="../media/images/Variable.png" />
							<span class="var-title">
								<span class="var-name"><a href="../Salary/Salary.html#var$socialTax">Salary::$socialTax</a></span><br>
							</span>
													<img src="../media/images/Variable.png" />
							<span class="var-title">
								<span class="var-name"><a href="../Salary/Salary.html#var$socialTaxPercent">Salary::$socialTaxPercent</a></span><br>
							</span>
													<img src="../media/images/Variable.png" />
							<span class="var-title">
								<span class="var-name"><a href="../Salary/Salary.html#var$taxFreeMinimum">Salary::$taxFreeMinimum</a></span><br>
							</span>
													<img src="../media/images/Variable.png" />
							<span class="var-title">
								<span class="var-name"><a href="../Salary/Salary.html#var$unemploymentInsuranceEmployee">Salary::$unemploymentInsuranceEmployee</a></span><br>
							</span>
													<img src="../media/images/Variable.png" />
							<span class="var-title">
								<span class="var-name"><a href="../Salary/Salary.html#var$unemploymentInsuranceEmployeePercent">Salary::$unemploymentInsuranceEmployeePercent</a></span><br>
							</span>
													<img src="../media/images/Variable.png" />
							<span class="var-title">
								<span class="var-name"><a href="../Salary/Salary.html#var$unemploymentInsuranceEmployer">Salary::$unemploymentInsuranceEmployer</a></span><br>
							</span>
													<img src="../media/images/Variable.png" />
							<span class="var-title">
								<span class="var-name"><a href="../Salary/Salary.html#var$unemploymentInsuranceEmployerPercent">Salary::$unemploymentInsuranceEmployerPercent</a></span><br>
							</span>
													<img src="../media/images/Variable.png" />
							<span class="var-title">
								<span class="var-name"><a href="../Salary/Salary.html#var$wageFund">Salary::$wageFund</a></span><br>
							</span>
													<img src="../media/images/Variable.png" />
							<span class="var-title">
								<span class="var-name"><a href="../Salary/Salary.html#var$workHours">Salary::$workHours</a></span><br>
							</span>
											</blockquote> 
										
		</div>
	</div>
	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
															<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
																	<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>
<a name="methodcalculate" id="calculate"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">calculate</span> (line <span class="line-number"><a href="../__filesource/fsource_Salary__libsPubSalaryWorkerSalary.class.php.html#a66">66</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Calculates all payments from bruto price</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			calculate
		</span>
					(<span class="var-type">Float</span>&nbsp;<span class="var-name">$price</span>, [<span class="var-type">String</span>&nbsp;<span class="var-name">$type</span> = <span class="var-default">'neto'</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">Float</span>
				<span class="var-name">$price</span>			</li>
					<li>
				<span class="var-type">String</span>
				<span class="var-name">$type</span><span class="var-description">: [neto|bruto|wageFund|totalExpenses]</span>			</li>
				</ul>
		
			<hr class="separator" />
		<div class="notes">Redefinition of:</div>
		<dl>
			<dt><a href="../Salary/Salary.html#methodcalculate">Salary::calculate()</a></dt>
						<dd>Calculates all payments from bruto price</dd>
					</dl>
			
	</div>
							<h4>Inherited Methods</h4>
				<a name='inherited_methods'><!-- --></a>	
									<!-- =========== Summary =========== -->
					<p>Inherited From <span class="classname"><a href="../Salary/Salary.html">Salary</a></span></p>
					<blockquote>
													<img src="../media/images/Method.png" alt=" "/>
							<span class="method-name"><a href="../Salary/Salary.html#methodcalculate">Salary::calculate()</a></span><br>
											</blockquote>
										
		</div>
	</div>

	
	<p class="notes" id="credit">
		Documentation generated on Fri, 24 Sep 2010 21:15:39 +0000 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a>
	</p>
	</div></body>
</html>